<?php

namespace App\Task;


use App\Common\Admin\Admin;

class queue_out extends TaskBase
{
    public function funcGetCallBack__waitMS()
    {
        return 1000;
    }

    public function funcGetCoCount()
    {
        return 5;
    }

    public function funcHandle($index)
    {
        $id = $this->redis()->rPop(Admin::funcRegKey__redis());
        if ($id)
        {
            $this->redis6380()->set(Admin::funcRegKeyCheckFix__redis($id), '', 30);

            return 1;
        }

        return 0;
    }

}